package com.jmx.yp.service.system;

import com.jmx.yp.dao.IBaseDao;
import java.util.*;

/**
 * 
 * 功能描述：
 *			接口ISystemService实现类
 * @author Jenny
 *
 * Date:2011-2-8 下午03:06:08
 */
public class SystemService implements ISystemService {

	private IBaseDao dao;
	
	public void setDao(IBaseDao dao){
		this.dao = dao;
	}
	
	/**
	 * 更新帐号密码
	 * @param empId
	 * @param newPassword
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	public void updatePassword(Long empId, String newPassword) throws Exception{
		Map paramMap = new HashMap(2);
		paramMap.put("empId", empId);
		paramMap.put("newPassword", newPassword);
		
		dao.updateObject("com.jmx.yp.entity.GroupEmployeeMapper.updatePassword", paramMap);
	}
	
}
